﻿using System;

class ThirdBit0Or1
{
    static void Main(string[] args)
    {
        Console.WriteLine("Vuvedete chislo za proverka:");
        int TestNumber = int.Parse(Console.ReadLine());
        int mask = 1 << 3;
        int NumberAndMask = TestNumber & mask;
        int bitValue = NumberAndMask >> 3;
        Console.WriteLine(bitValue);
    }
}

